<?
include_once("./includes/top.inc.php");
include_once("./includes/autentica.inc.php");

$arquivos = $OBArquivo->obtem();
$smarty->assign("arquivos", $arquivos);

if(isset($_GET['pop']) && $_GET['pop'] == 1)
{
	$smarty->assign("id",$_GET['id']);
	$conteudo = $smarty->display("sistema/arquivo_list_pop.tpl");
}
else 
{
	$conteudo = $smarty->fetch("sistema/arquivo_list.tpl");
	$smarty->assign("conteudo",$conteudo);
	$smarty->display("sistema/layout.tpl");
}


?>